package com.bxshey.happyTown.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bxshey.happyTown.entity.User;
import org.apache.ibatis.annotations.Mapper;


/**
 * (User)表数据库访问层
 *
 * @author makejava
 * @since 2024-01-03 22:42:39
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    //根据openId查询单个用户
    User queryOpenid(String openId);

    //根据Id查询单个用户
    User queryById(Integer id);

    //新增用户信息
    Integer insertOne(User user);

    //修改用户信息
    Integer update(User user);


}

